using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GetBottleCountResponse : GeneratedMessageLite<GetBottleCountResponse, GetBottleCountResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GetBottleCountResponse, GetBottleCountResponse.Builder>
		{
			private bool resultIsReadOnly;
			private GetBottleCountResponse result;
			protected override GetBottleCountResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GetBottleCountResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GetBottleCountResponse DefaultInstanceForType
			{
				get
				{
					return GetBottleCountResponse.DefaultInstance;
				}
			}
			public int Ret
			{
				get
				{
					return this.result.Ret;
				}
				set
				{
					this.SetRet(value);
				}
			}
			public int ThrowCount
			{
				get
				{
					return this.result.ThrowCount;
				}
				set
				{
					this.SetThrowCount(value);
				}
			}
			public int PickCount
			{
				get
				{
					return this.result.PickCount;
				}
				set
				{
					this.SetPickCount(value);
				}
			}
			public int WordListNum
			{
				get
				{
					return this.result.WordListNum;
				}
				set
				{
					this.SetWordListNum(value);
				}
			}
			public IPopsicleList<SKBuiltinString_t> WordListList
			{
				get
				{
					return this.PrepareBuilder().wordList_;
				}
			}
			public int WordListCount
			{
				get
				{
					return this.result.WordListCount;
				}
			}
			public Builder()
			{
				this.result = GetBottleCountResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GetBottleCountResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GetBottleCountResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GetBottleCountResponse other = this.result;
					this.result = new GetBottleCountResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GetBottleCountResponse.Builder Clear()
			{
				this.result = GetBottleCountResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GetBottleCountResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GetBottleCountResponse.Builder(this.result);
				}
				return new GetBottleCountResponse.Builder().MergeFrom(this.result);
			}
			public override GetBottleCountResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GetBottleCountResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is GetBottleCountResponse)
				{
					return this.MergeFrom((GetBottleCountResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GetBottleCountResponse.Builder MergeFrom(GetBottleCountResponse other)
			{
				return this;
			}
			public override GetBottleCountResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GetBottleCountResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GetBottleCountResponse._getBottleCountResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GetBottleCountResponse._getBottleCountResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 16u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 8u)
						{
							this.result.hasRet = input.ReadInt32(ref this.result.ret_);
							continue;
						}
						if (num3 == 16u)
						{
							this.result.hasThrowCount = input.ReadInt32(ref this.result.throwCount_);
							continue;
						}
					}
					else
					{
						if (num3 == 24u)
						{
							this.result.hasPickCount = input.ReadInt32(ref this.result.pickCount_);
							continue;
						}
						if (num3 == 32u)
						{
							this.result.hasWordListNum = input.ReadInt32(ref this.result.wordListNum_);
							continue;
						}
						if (num3 == 42u)
						{
							input.ReadMessageArray<SKBuiltinString_t>(num, text, this.result.wordList_, SKBuiltinString_t.DefaultInstance, extensionRegistry);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public GetBottleCountResponse.Builder SetRet(int value)
			{
				this.PrepareBuilder();
				this.result.hasRet = true;
				this.result.ret_ = value;
				return this;
			}
			public GetBottleCountResponse.Builder ClearRet()
			{
				this.PrepareBuilder();
				this.result.hasRet = false;
				this.result.ret_ = 0;
				return this;
			}
			public GetBottleCountResponse.Builder SetThrowCount(int value)
			{
				this.PrepareBuilder();
				this.result.hasThrowCount = true;
				this.result.throwCount_ = value;
				return this;
			}
			public GetBottleCountResponse.Builder ClearThrowCount()
			{
				this.PrepareBuilder();
				this.result.hasThrowCount = false;
				this.result.throwCount_ = 0;
				return this;
			}
			public GetBottleCountResponse.Builder SetPickCount(int value)
			{
				this.PrepareBuilder();
				this.result.hasPickCount = true;
				this.result.pickCount_ = value;
				return this;
			}
			public GetBottleCountResponse.Builder ClearPickCount()
			{
				this.PrepareBuilder();
				this.result.hasPickCount = false;
				this.result.pickCount_ = 0;
				return this;
			}
			public GetBottleCountResponse.Builder SetWordListNum(int value)
			{
				this.PrepareBuilder();
				this.result.hasWordListNum = true;
				this.result.wordListNum_ = value;
				return this;
			}
			public GetBottleCountResponse.Builder ClearWordListNum()
			{
				this.PrepareBuilder();
				this.result.hasWordListNum = false;
				this.result.wordListNum_ = 0;
				return this;
			}
			public SKBuiltinString_t GetWordList(int index)
			{
				return this.result.GetWordList(index);
			}
			public GetBottleCountResponse.Builder SetWordList(int index, SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.wordList_[index] = value;
				return this;
			}
			public GetBottleCountResponse.Builder SetWordList(int index, SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.wordList_[index] = builderForValue.Build();
				return this;
			}
			public GetBottleCountResponse.Builder AddWordList(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.wordList_.Add(value);
				return this;
			}
			public GetBottleCountResponse.Builder AddWordList(SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.wordList_.Add(builderForValue.Build());
				return this;
			}
			public GetBottleCountResponse.Builder AddRangeWordList(IEnumerable<SKBuiltinString_t> values)
			{
				this.PrepareBuilder();
				this.result.wordList_.Add(values);
				return this;
			}
			public GetBottleCountResponse.Builder ClearWordList()
			{
				this.PrepareBuilder();
				this.result.wordList_.Clear();
				return this;
			}
		}
		public const int RetFieldNumber = 1;
		public const int ThrowCountFieldNumber = 2;
		public const int PickCountFieldNumber = 3;
		public const int WordListNumFieldNumber = 4;
		public const int WordListFieldNumber = 5;
		private static readonly GetBottleCountResponse defaultInstance;
		private static readonly string[] _getBottleCountResponseFieldNames;
		private static readonly uint[] _getBottleCountResponseFieldTags;
		private bool hasRet;
		private int ret_;
		private bool hasThrowCount;
		private int throwCount_;
		private bool hasPickCount;
		private int pickCount_;
		private bool hasWordListNum;
		private int wordListNum_;
		private PopsicleList<SKBuiltinString_t> wordList_ = new PopsicleList<SKBuiltinString_t>();
		private int memoizedSerializedSize = -1;
		public static GetBottleCountResponse DefaultInstance
		{
			get
			{
				return GetBottleCountResponse.defaultInstance;
			}
		}
		public override GetBottleCountResponse DefaultInstanceForType
		{
			get
			{
				return GetBottleCountResponse.DefaultInstance;
			}
		}
		protected override GetBottleCountResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public int Ret
		{
			get
			{
				return this.ret_;
			}
		}
		public int ThrowCount
		{
			get
			{
				return this.throwCount_;
			}
		}
		public int PickCount
		{
			get
			{
				return this.pickCount_;
			}
		}
		public int WordListNum
		{
			get
			{
				return this.wordListNum_;
			}
		}
		public IList<SKBuiltinString_t> WordListList
		{
			get
			{
				return this.wordList_;
			}
		}
		public int WordListCount
		{
			get
			{
				return this.wordList_.Count;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasRet && this.hasThrowCount && this.hasPickCount && this.hasWordListNum;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasRet)
				{
					num += CodedOutputStream.ComputeInt32Size(1, this.Ret);
				}
				if (this.hasThrowCount)
				{
					num += CodedOutputStream.ComputeInt32Size(2, this.ThrowCount);
				}
				if (this.hasPickCount)
				{
					num += CodedOutputStream.ComputeInt32Size(3, this.PickCount);
				}
				if (this.hasWordListNum)
				{
					num += CodedOutputStream.ComputeInt32Size(4, this.WordListNum);
				}
				using (IEnumerator<SKBuiltinString_t> enumerator = this.WordListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						SKBuiltinString_t current = enumerator.get_Current();
						num += CodedOutputStream.ComputeMessageSize(5, current);
					}
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GetBottleCountResponse()
		{
		}
		public SKBuiltinString_t GetWordList(int index)
		{
			return this.wordList_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] getBottleCountResponseFieldNames = GetBottleCountResponse._getBottleCountResponseFieldNames;
			if (this.hasRet)
			{
				output.WriteInt32(1, getBottleCountResponseFieldNames[1], this.Ret);
			}
			if (this.hasThrowCount)
			{
				output.WriteInt32(2, getBottleCountResponseFieldNames[2], this.ThrowCount);
			}
			if (this.hasPickCount)
			{
				output.WriteInt32(3, getBottleCountResponseFieldNames[0], this.PickCount);
			}
			if (this.hasWordListNum)
			{
				output.WriteInt32(4, getBottleCountResponseFieldNames[4], this.WordListNum);
			}
			if (this.wordList_.Count > 0)
			{
				output.WriteMessageArray<SKBuiltinString_t>(5, getBottleCountResponseFieldNames[3], this.wordList_);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasRet)
			{
				num ^= this.ret_.GetHashCode();
			}
			if (this.hasThrowCount)
			{
				num ^= this.throwCount_.GetHashCode();
			}
			if (this.hasPickCount)
			{
				num ^= this.pickCount_.GetHashCode();
			}
			if (this.hasWordListNum)
			{
				num ^= this.wordListNum_.GetHashCode();
			}
			using (IEnumerator<SKBuiltinString_t> enumerator = this.wordList_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					SKBuiltinString_t current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			GetBottleCountResponse getBottleCountResponse = object_0 as GetBottleCountResponse;
			if (getBottleCountResponse == null)
			{
				return false;
			}
			if (this.hasRet != getBottleCountResponse.hasRet || (this.hasRet && !this.ret_.Equals(getBottleCountResponse.ret_)))
			{
				return false;
			}
			if (this.hasThrowCount != getBottleCountResponse.hasThrowCount || (this.hasThrowCount && !this.throwCount_.Equals(getBottleCountResponse.throwCount_)))
			{
				return false;
			}
			if (this.hasPickCount != getBottleCountResponse.hasPickCount || (this.hasPickCount && !this.pickCount_.Equals(getBottleCountResponse.pickCount_)))
			{
				return false;
			}
			if (this.hasWordListNum != getBottleCountResponse.hasWordListNum || (this.hasWordListNum && !this.wordListNum_.Equals(getBottleCountResponse.wordListNum_)))
			{
				return false;
			}
			if (this.wordList_.Count != getBottleCountResponse.wordList_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.wordList_.Count; i++)
			{
				if (!this.wordList_[i].Equals(getBottleCountResponse.wordList_[i]))
				{
					return false;
				}
			}
			return true;
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GetBottleCountResponse, GetBottleCountResponse.Builder>.PrintField("Ret", this.hasRet, this.ret_, writer);
			GeneratedMessageLite<GetBottleCountResponse, GetBottleCountResponse.Builder>.PrintField("ThrowCount", this.hasThrowCount, this.throwCount_, writer);
			GeneratedMessageLite<GetBottleCountResponse, GetBottleCountResponse.Builder>.PrintField("PickCount", this.hasPickCount, this.pickCount_, writer);
			GeneratedMessageLite<GetBottleCountResponse, GetBottleCountResponse.Builder>.PrintField("WordListNum", this.hasWordListNum, this.wordListNum_, writer);
			GeneratedMessageLite<GetBottleCountResponse, GetBottleCountResponse.Builder>.PrintField<SKBuiltinString_t>("WordList", this.wordList_, writer);
		}
		public static GetBottleCountResponse ParseFrom(byte[] data)
		{
			return GetBottleCountResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GetBottleCountResponse MakeReadOnly()
		{
			this.wordList_.MakeReadOnly();
			return this;
		}
		public static GetBottleCountResponse.Builder CreateBuilder()
		{
			return new GetBottleCountResponse.Builder();
		}
		public override GetBottleCountResponse.Builder ToBuilder()
		{
			return GetBottleCountResponse.CreateBuilder(this);
		}
		public override GetBottleCountResponse.Builder CreateBuilderForType()
		{
			return new GetBottleCountResponse.Builder();
		}
		public static GetBottleCountResponse.Builder CreateBuilder(GetBottleCountResponse prototype)
		{
			return new GetBottleCountResponse.Builder(prototype);
		}
		static GetBottleCountResponse()
		{
			GetBottleCountResponse.defaultInstance = new GetBottleCountResponse().MakeReadOnly();
			GetBottleCountResponse._getBottleCountResponseFieldNames = new string[]
			{
				"PickCount",
				"Ret",
				"ThrowCount",
				"WordList",
				"WordListNum"
			};
			GetBottleCountResponse._getBottleCountResponseFieldTags = new uint[]
			{
				24u,
				8u,
				16u,
				42u,
				32u
			};
			object.ReferenceEquals(micromsg.Proto.GetBottleCountResponse.Descriptor, null);
		}
	}
}
